import request from '@/utils/request'

// 查询一级指标列表
export function listFirstMetrics(query) {
  return request({
    url: '/eval/firstMetrics/list',
    method: 'get',
    params: query
  })
}

// 查询一级指标详细
export function getFirstMetrics(id) {
  return request({
    url: '/eval/firstMetrics/' + id,
    method: 'get'
  })
}

// 新增一级指标
export function addFirstMetrics(data) {
  return request({
    url: '/eval/firstMetrics',
    method: 'post',
    data: data
  })
}

// 修改一级指标
export function updateFirstMetrics(data) {
  return request({
    url: '/eval/firstMetrics',
    method: 'put',
    data: data
  })
}

// 删除一级指标
export function delFirstMetrics(id) {
  return request({
    url: '/eval/firstMetrics/' + id,
    method: 'delete'
  })
}
